package com.example.oschina.network.mode;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * Awesome Pojo Generator
 */
public class TokenMode {
  @SerializedName("access_token")
  @Expose
  private String access_token;
  @SerializedName("refresh_token")
  @Expose
  private String refresh_token;
  @SerializedName("uid")
  @Expose
  private Integer uid;
  @SerializedName("token_type")
  @Expose
  private String token_type;
  @SerializedName("expires_in")
  @Expose
  private Integer expires_in;

  public void setAccess_token(String access_token) {
    this.access_token = access_token;
  }

  public String getAccess_token() {
    return access_token;
  }

  public void setRefresh_token(String refresh_token) {
    this.refresh_token = refresh_token;
  }

  public String getRefresh_token() {
    return refresh_token;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public Integer getUid() {
    return uid;
  }

  public void setToken_type(String token_type) {
    this.token_type = token_type;
  }

  public String getToken_type() {
    return token_type;
  }

  public void setExpires_in(Integer expires_in) {
    this.expires_in = expires_in;
  }

  public Integer getExpires_in() {
    return expires_in;
  }

  @Override public String toString() {
    return "TokenMode{" +
        "access_token='" + access_token + '\'' +
        ", refresh_token='" + refresh_token + '\'' +
        ", uid=" + uid +
        ", token_type='" + token_type + '\'' +
        ", expires_in=" + expires_in +
        '}';
  }
}